/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tugas1_2_3;

import java.util.Scanner;

/**
 *
 * @author novaldebbyp
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    
    /*
     * Tugas 2
     * public static int getUserInput(){
        Scanner scanInput = new  Scanner(System.in);
        String s = scanInput.nextLine();
        try{
            return Integer.parseInt(s);
        }catch(NumberFormatException ex){
            System.out.println("Yang anda masukkan bukan merupakan Integer.");
            return 0;
        }
    }
    
    public static void main(String[] args) {
        System.out.print("Bilangan Pertama : ");
        int bilangan1 = Main.getUserInput();
        System.out.print("Bilangan Kedua : ");
        int bilangan2 = Main.getUserInput();
        if(bilangan1 == bilangan2){
            System.out.println(bilangan1 + " == " + bilangan2);
        }
        if(bilangan1 != bilangan2){
            System.out.println(bilangan1 + " != " + bilangan2);
        }
        if(bilangan1 > bilangan2){
            System.out.println(bilangan1 + " > " + bilangan2);
        }
        if(bilangan1 < bilangan2){
            System.out.println(bilangan1 + " < " + bilangan2);
        }
        if(bilangan1 >= bilangan2){
            System.out.println(bilangan1 + " >= " + bilangan2);
        }
        if(bilangan1 <= bilangan2){
            System.out.println(bilangan1 + " <= " + bilangan2);
        }
    }*/
    
    
    /* public static int getUserInput(){
        Scanner scanInput = new  Scanner(System.in);
        String input = scanInput.nextLine();
        try{
            return Integer.parseInt(input);
        }catch(NumberFormatException ex){
            System.out.println("Yang anda masukkan bukan merupakan Integer.");
            return 0;
        }
    }
    
    public static void main(String[] args) {
        System.out.print("Bilangan Pertama : ");
        int bilangan1 = Main.getUserInput();
        System.out.print("Bilangan Kedua : ");
        int bilangan2 = Main.getUserInput();
        int result = bilangan1 + bilangan2;
        System.out.println("Jumlah "+bilangan1+" + "+bilangan2+" = "+result);
    }
    */
}
